import Axios from 'axios';
Axios;
export const getAddressList = data => {
  return {
    type: 'GETADDRESSLIST',
    payload: data
  };
};
export function fetchAddressList() {
  return dispatch => {
    return Axios({
      url: 'http://localhost:3000/phone',
      method: 'get'
    }).then(res => {
      dispatch(getAddressList(res.data));
    });
  };
}
